package com.example.aop.demo;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class AopTest {

    @Pointcut(value = "execution(public * com.example.aop.demo.*.*(..) )")
    public  void  point(){};

    @Before( value = "point()")
    public  void before(JoinPoint point){
        String name = point.getSignature().getName();
        System.out.println(name);
        System.out.println("llllllllll");
    }



}
